package com.sure.supermarketserver;


import com.sure.supermarketserver.security.user.UserAPI;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
@MapperScan("com.sure.supermarketserver.*.*.dao")
public class App {

    public static void main(String[] args) {
        ApplicationContext ctx = SpringApplication.run(App.class,args);

        UserAPI userAPI = ctx.getBean(UserAPI.class);

        System.out.println(userAPI);

        System.out.println(userAPI.hi());
    }
}
